package com.taxinfo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.taxinfo.dao.IncomeStmInfoMapper;
import com.taxinfo.dao.IncomeStmInfoMapper;
import com.taxinfo.pojo.dto.IncomeStmInfoDto;
import com.taxinfo.pojo.vo.IncomeStmInfo;
import com.taxinfo.service.IncomeStmInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("IncomeStmInfoServiceImpl")
public class IncomeStmInfoServiceImpl extends ServiceImpl<IncomeStmInfoMapper, IncomeStmInfo> implements IncomeStmInfoService {
    @Autowired
    private IncomeStmInfoMapper IncomeStmInfoMapper;

    @Override
    public List<IncomeStmInfoDto> selectAllData(String id) {
        return IncomeStmInfoMapper.selectAllData(id);
    }

    @Override
    public List<IncomeStmInfoDto> selectDataByParentId(String id) {
        return IncomeStmInfoMapper.selectDataByParentId(id);
    }

    @Override
    public List<IncomeStmInfoDto> selectLastDataInfo(String key) {
        return IncomeStmInfoMapper.selectLastDataInfo(key);
    }

}
